#include "aerial\Game\Helper\BattleHelper.h"

float BattleHelper::ratio = 1.f;

float BattleHelper::W = 800.f;
float BattleHelper::H = 600.f;

/*void BattleHelper::setRatio(float _ratio);
void BattleHelper::setMapHW(float _W, float _H);*/

/*
float BattleHelper::getRatio() {	return ratio;	}


void BattleHelper::getMapHW(float& _W, float& _H) {	_W = W; _H = H; }

float BattleHelper::getBox2dLengthFromHge(float length) {	return length / ratio;	}
float BattleHelper::getHgeLengthFromBox2d(float length) {	return length * ratio;	}

void BattleHelper::getBox2dCoordinateFromHge(float& dx, float& dy, float sx, float sy)
{
	dx = (sx - W) / ratio;
	dy = (sy - H) / ratio;
}


const b2Vec2& BattleHelper::getBox2dCoordinateFromHge(const b2Vec2& src)
{
	return b2Vec2((src.x - W) / ratio, (src.y - H) / ratio);
}

void BattleHelper::getHgeCoordinateFromBox2d(float& dx, float& dy, float sx, float sy)
{
	dx = sx * ratio + W;
	dy = sy * ratio + H;
}

const b2Vec2& BattleHelper::getHgeCoordinateFromBox2d(const b2Vec2& src)
{
	return b2Vec2(src.x * ratio + W, src.y * ratio + H);
}*/
